﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FriendAD.Core
{
    public class Info
    {
        public Info()
        {
            AdCount = 0;
            Count = 0;
        }
        [Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int ID { set; get; }
        public int UserID { set; get; }
        public string wechatID { set; get; }
        /// <summary>
        /// 公众号显示状态，显示1，不显示0
        /// </summary>
        public int wechatStatus { set; get; }
        /// <summary>
        /// 广告位置，1在顶部，0在底部
        /// </summary>
        public int location { set; get; }
        public string Title { set; get; }
        public string Content { set; get; }
        public int Count { set; get; }
        public int AdCount { set; get; }
        public virtual Ad Ad { set; get; }

    }
}
